<template>
	<view class="mask" @touchmove.stop.prevent>
		<view class="loadEffect">
			<view></view>
			<view></view>
			<view></view>
			<view></view>
			<view></view>
			<view></view>
			<view></view>
			<view></view>
		</view>
		<text class="info">{{text}}</text>
	</view>
</template>

<script>
	export default {
		props:{
			text:{
				default:'请输入',
				type:String
			},
		}
	}
</script>

<style lang="less" scoped>
	.mask {
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		background-color: rgba(0, 0, 0, .6);
		z-index: 999;
	}

	.loadEffect {
		width: 100rpx;
		height: 100rpx;
		position: relative;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}

	.loadEffect view {
		display: inline-block;
		width: 20rpx;
		height: 20rpx;
		border-radius: 50%;
		background: #FCC928;
		position: absolute;
		-webkit-animation: load 1.04s ease infinite;
	}

	@-webkit-keyframes load {
		0% {
			-webkit-transform: scale(1.2);
			opacity: 1;
		}

		100% {
			-webkit-transform: scale(.3);
			opacity: 0.5;
		}
	}

	.loadEffect view:nth-child(1) {
		top: 5rpx;
		left: 41.5rpx;
		-webkit-animation-delay: 0.13s;
	}

	.loadEffect view:nth-child(2) {
		top: 18rpx;
		right: 18rpx;
		-webkit-animation-delay: 0.26s;
	}

	.loadEffect view:nth-child(3) {
		top: calc(50% - 10rpx);
		right: 5rpx;
		-webkit-animation-delay: 0.39s;
	}

	.loadEffect view:nth-child(4) {
		top: calc(50% + 16rpx);
		right: 18rpx;
		-webkit-animation-delay: 0.52s;
	}

	.loadEffect view:nth-child(5) {
		top: 75rpx;
		left: 41.5rpx;
		-webkit-animation-delay: 0.65s;
	}

	.loadEffect view:nth-child(6) {
		top: calc(50% + 16rpx);
		left: 18rpx;
		-webkit-animation-delay: 0.78s;
	}

	.loadEffect view:nth-child(7) {
		top: calc(50% - 10rpx);
		left: 5rpx;
		-webkit-animation-delay: 0.91s;
	}

	.loadEffect view:nth-child(8) {
		top: 18rpx;
		left: 18rpx;
		-webkit-animation-delay: 1.04s;
	}
	.info {
		display: inline-block;
		width: 750rpx;
		font-size: 28rpx;
		font-weight: bold;
		color: #FFFFFF;
		line-height: 45rpx;
		text-align: center;
		position: absolute;
		top: 55%;
		// transform: translateY(-50%);
	}
</style>
